Download File

Command Prototype

WebBrowser.Download(hWeb,sURL,sFile,bSync,iTimeOut,optionArgs)

Command Description

Use a browser to download files from a specified link

Parameter Description
Required Parameter
hWeb--Browser's handle string returned with WebBrowser.Create or WebBrowser.Bind functions
sURL--The file link address (URL) to download from
sFile--The path to save the downloaded file locally
bSync--Whether the function will execute synchronously; if true is passed, it will wait for the files to finish downloading to return and continue, if false is passed, it will return immediately when the file starts to download
iTimeOut--The timeout to wait for the file to download. If it expires, it is determined that the file fails to download. The default is 30000 milliseconds (5 minutes)
Optional Parameter
bContinueOnError--Specify whether automation should continue if the activity throws an error. This field only supports Boolean values ​​(True, False). The default is False
iDelayAfter--The delay in milliseconds after the activity is executed. The default is 300 milliseconds
iDelayBefore--The delay in milliseconds before the activity starts any operation. The default is 200 milliseconds

results matching ""

    No results matching ""